Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hash-wasm

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hash-wasm

Lightning fast hash functions for browsers and Node.js using hand-tuned WebAssembly binaries (MD4, MD5, SHA-1, SHA-2, SHA-3, Keccak, BLAKE2, BLAKE3, PBKDF2, Argon2, bcrypt, scrypt, Adler-32, CRC32, CRC32C, RIPEMD-160, HMAC, xxHash, SM3, Whirlpool)

  • 4.11.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is hash-wasm?

The hash-wasm npm package provides high-performance hashing algorithms implemented in WebAssembly. It supports a variety of hash functions and is designed to be fast and efficient, making it suitable for both client-side and server-side applications.

What are hash-wasm's main functionalities?

SHA-256 Hashing

This feature allows you to compute the SHA-256 hash of a given input string. The code sample demonstrates how to use the sha256 function from the hash-wasm package to hash the string 'Hello, world!'.

const { sha256 } = require('hash-wasm');
(async () => {
  const hash = await sha256('Hello, world!');
  console.log(hash); // Outputs the SHA-256 hash of the input string
})();

MD5 Hashing

This feature allows you to compute the MD5 hash of a given input string. The code sample demonstrates how to use the md5 function from the hash-wasm package to hash the string 'Hello, world!'.

const { md5 } = require('hash-wasm');
(async () => {
  const hash = await md5('Hello, world!');
  console.log(hash); // Outputs the MD5 hash of the input string
})();

Blake2b Hashing

This feature allows you to compute the Blake2b hash of a given input string. The code sample demonstrates how to use the blake2b function from the hash-wasm package to hash the string 'Hello, world!'.

const { blake2b } = require('hash-wasm');
(async () => {
  const hash = await blake2b('Hello, world!');
  console.log(hash); // Outputs the Blake2b hash of the input string
})();

Other packages similar to hash-wasm

Keywords

FAQs

Package last updated on 13 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc